package com.yfbao.poll.demo.event;

import com.yfbao.poll.demo.message.BasePollMessage;
import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;


public class PollingEvent extends ApplicationEvent {

    public PollingEvent(BasePollMessage msg) {
        super(msg);
        this.msg =msg;
    }
    //用户名
    //message info
    private BasePollMessage msg;


    public BasePollMessage getMsg() {
        return msg;
    }

    public void setMsg(BasePollMessage msg) {
        this.msg = msg;
    }


}
